From: Adel Gadllah Date: Wed, 9 Mar 2011 13:00:25 +0000 (+0100) Subject: notification: Remove scrollTo hack X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8725 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=dc2cae07b293c5dc98ec8fb6ff242b903d631ee7;p=gnome-shell.git notification: Remove scrollTo hack Remove the hack from Notification.scrollTo because it is unreliable, the caller should make sure to call scrollTo when it will actually have the desired effect. https://bugzilla.gnome.org/show_bug.cgi?id=614977 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index c9c977aaf..39b90f860 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -571,11 +571,6 @@ Notification.prototype = { // // Scrolls the content area (if scrollable) to the indicated edge scrollTo: function(side) { - // Hack to force a relayout, since the caller probably - // just added or removed something to scrollArea, and - // the adjustment needs to reflect that. - global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, 0, 0); - let adjustment = this._scrollArea.vscroll.adjustment; if (side == St.Side.TOP) adjustment.value = adjustment.lower;